export default {
  data() {
    return {
      isAdmin: false
    }
  },
  computed: {
    xtInfo() {
      return this.$store.state.xtInfo
    },
    yhxx() {
      let yhxx = mySessionStorage.getItem("yhxx");
      if (!yhxx) {
        return null
      }
      this.isAdmin = yhxx.rybm === '0'
      return yhxx
    },
    xmItem() {
      return mySessionStorage.getItem("xm-item", {})
    },
    gzdyItem() {
      return mySessionStorage.getItem("gzdy-item", {})
    }
  },
  methods: {
    async preDel(fn, arg, msg) {
      try {
        await this.$confirm(msg || "删除将不可恢复，是否删除？")
        fn(arg)
      } catch (e) {

      }
    }
  }
}
